 function testpanel() // Create the function
  test = vgui.Create("DFrame") // Create the frame
  menu1 = vgui.Create("DButton") // Create the button
   
   test:SetPos(50,50) // set the frame's position on the screen
   test:SetSize(300, 300) // set the frame size
   test:SetTitle( "Test" ) // set the frame title
   test:SetVisible( true ) // Make the frame visible
   test:MakePopup() // make the frame popup
   menu1:SetParent( test ) // parent the button to the frame
   menu1:SetText( "Menu >" ) // set the button text
   menu1:SetPos(150, 150) // set the button position in the frame
   menu1:SetSize( 100, 20 ) // set the button size
   menu1.DoClick = function ( btn ) // this will be called when the button is clicked
   local menu123 = DermaMenu() // create a derma menu
   menu123:AddOption("hello", function() Msg("Hello") end ) // adding options
   menu123:AddOption("how", function() Msg("How") end )
   menu123:AddOption("are", function() Msg("Are") end )
   menu123:AddOption("you", function() Msg("You") end )
   menu123:AddOption("?", function() Msg("?") end )
   menu123:Open()
   end // ending the doclick function
  end // ending the function
  concommand.Add("testpanel2", testpanel) // adding the console command 
  